package com.lzh.runke.core.service;

import com.lzh.runke.core.entity.Code;
import com.lzh.runke.core.entity.spec.BaseSpec;
import com.lzh.runke.core.enums.CodeTypeBaseEnum;
import com.lzh.runke.core.web_base.Result;

import java.util.List;

/**
 * 通用码表 Service
 *
 * @author xie
 */
public interface ICodeService extends IBaseService<Code, BaseSpec> {
    /**
     * 根据码表类型查询
     *
     * @param type CodeTypeBaseEnum
     * @return Result<List < Code>>
     */
    Result<List<Code>> findByType(CodeTypeBaseEnum type);
}
